import request from '@/utils/request'

// 查询会员业绩列表
export function listPreform(query) {
  return request({
    url: '/bussiness/preform/list',
    method: 'get',
    params: query
  })
}

// 查询会员业绩详细
export function getPreform(id) {
  return request({
    url: '/bussiness/preform/' + id,
    method: 'get'
  })
}

// 新增会员业绩
export function addPreform(data) {
  return request({
    url: '/bussiness/preform',
    method: 'post',
    data: data
  })
}

// 修改会员业绩
export function updatePreform(data) {
  return request({
    url: '/bussiness/preform',
    method: 'put',
    data: data
  })
}

// 删除会员业绩
export function delPreform(id) {
  return request({
    url: '/bussiness/preform/' + id,
    method: 'delete'
  })
}
